export function getWarnList() {
	return uni.request({
		url: 'https://crop.lxylw.design/warning/',
		method:"GET",
		sslVerify: false,
		data:{
			page:1,
			size:99999
		}
	});
}

export function getWarnByUserId(id) {
	return uni.request({
		url: 'https://crop.lxylw.design/warning/search/',
		method:"POST",
		sslVerify: false,
		data:{
			soilbelong :parseInt(id)
		}
	});
}

export function updateWarn(param) {
	return uni.request({
		url: 'https://crop.lxylw.design/warning/'+param.warnid+'/',
		method:"PUT",
		sslVerify: false,
		data:param
	});
}


